package string;

//把其他数据类型变成string
public class ValueOfDemo {
    public static void main(String[] args) {
        int a = 123;
        double b = 123.123;
        String s = String.valueOf(a);
        String s1 = String.valueOf(b);
        String s2 = b + "";
        System.out.println(s1.equals(s2));
    }
}
